﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListarTopicoTematico.aspx.cs"
    Inherits="Sebrae.Academico.Trilhas.WebForms.Cadastros.TopicoTematico.ListarTopicoTematico" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h1>
            Filtro de Tópico Temático</h1>
        <table>
            <tr>
                <td>
                    Nome
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtNome" Width="353px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnPesquisar" runat="server" Text="Buscar" OnClick="btnBuscar_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="dgvTopicoTematico" runat="server" AutoGenerateColumns="False" BackColor="White"
        BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
        GridLines="Vertical" OnRowCommand="dgvTopicoTematico_RowCommand">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton ID="lkbEditar" runat="server" CausesValidation="False" CommandName="editar"
                        CommandArgument='<%# Eval("ID")%>' Text="Editar"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton ID="lkbExcluir" runat="server" CausesValidation="False" CommandName="delete"
                        CommandArgument='<%# Eval("ID")%>' Text="Excluir" OnClientClick="return confirm('Deseja Realmente Excluir este Registro?');"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tópico Temático">
                <ItemTemplate>
                    <%#Eval("Nome") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Descrição do Texto de Envio">
                <ItemTemplate>
                    <%#Eval("DescricaoTextoEnvio")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Arquivo de Envio">
                <ItemTemplate>
                    <%#Eval("DescricaoArquivoEnvio")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Quantidade Mínima">
                <ItemTemplate>
                    <%#Eval("QtdMinimaPontosAtivFormativa")%>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
    <br />
    <asp:Button ID="btnNovo" runat="server" Text="Adicionar Tópico Temático" OnClick="btnNovo_Click" />
    </form>
</body>
</html>
